﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 练习03
{
    class Program
    {
        static void Main(string[] args)
        {
            // 写4个有两个参数的方法，分别计算小数的加减乘除法，然后分别在Main方法中调用，将结果显示在控制台上
            //JiaFa(1.1, 2.2);
            //JianFa(1.1, 2.2);
            //ChengFa(1.1, 2.2);
            //ChuFa(1.1, 2.2);

            Console.WriteLine(JiaFa(1.1, 2.2));
            Console.WriteLine(JianFa(1.1, 2.2));
            Console.WriteLine(ChengFa(1.1, 2.2));
            Console.WriteLine(ChuFa(1.1, 2.2));
        }

        //static void JiaFa(double a, double b)
        //{
        //    Console.WriteLine(a + b);
        //}

        //static void JianFa(double a, double b)
        //{
        //    Console.WriteLine(a - b);
        //}

        //static void ChengFa(double a, double b)
        //{
        //    Console.WriteLine(a * b);
        //}

        //static void ChuFa(double a, double b)
        //{
        //    Console.WriteLine(a / b);
        //}

        static double JiaFa(double a, double b)
        {
            return 0;
        }

        static double JianFa(double a, double b)
        {
            return 1;
        }

        static double ChengFa(double a, double b)
        {
            return a * b;
        }

        static double ChuFa(double a, double b)
        {
            return a / b;
        }
    }
}
